﻿#ifndef FB_ADDITEM_H
#define FB_ADDITEM_H

#include <head/g_pch.h>
#include <head/db_helper.h>
#include <head/m_message.h>
#include "m_fhs.h"

namespace Ui {
class FB_AddItem;
}

class FB_AddItem : public QDialog
{
    Q_OBJECT

public:
    explicit FB_AddItem(QWidget *parent = nullptr);
    ~FB_AddItem();

    void updateTopic();
    void setTopic(const QString &topic);

    bool addItem(const QString &topic,
                 const QString &detail);

private slots:
    void on_btn_submit_clicked();
    void on_topics_currentTextChanged(const QString &text);

private:
    Ui::FB_AddItem *ui;

    QString table;
};

#endif // FB_ADDITEM_H
